package com.iweb.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 南京艾瑞
 * 作者: jack
 * 时间: 2020-06-29 15:30
 * 描述: MyBatisCofig
 */
@Configuration
@MapperScan("com.iweb.mapper")
public class MyBatisConfig {

    // 配置分页插件
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }

}
